package com.lagou.controller;

import com.lagou.bean.ConsumerCompoment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * @author lcy
 * @description TODO
 * @date 2020/11/11 22:08
 * @vserion 1.3.3
 */
@Controller
public class RequestController {

	@Autowired
	private ConsumerCompoment consumerCompoment;

	@RequestMapping("/consumer")
	@ResponseBody
	public String webConsumer(){
		String s = consumerCompoment.sayHello("马云");
		System.out.println(s);
		return "";
	}
}
